SlideShare a Scribd company logo
®




                   The DCT/IDCT Solution
                      Customer Tutorial

                         February 2000


File Number Here
Agenda
                        Introduction
                        DCT/IDCT Concepts
                        DCT/IDCT Applications
                        Spartan-II DCT/IDCT IP Solutions
                        Summary




Xilinx at Work in High Volume Applications                 ®

                                        www.xilinx.com
Introduction
         Spartan-II FPGAs
           —    100,000 System Gates at under $10
           —    Extensive features: Block RAM, DLL, Select I/O
           —    Vast IP Portfolio
           —    Provide Density, Features, Performance at ASIC prices




Xilinx at Work in High Volume Applications                              ®

                                        www.xilinx.com
DCT/IDCT Compression
    Compression allows increased throughput through
    transmission medium
      — Video and audio compression makes multimedia systems very
        efficient
             –   Increases CPU bandwidth
             –   Higher video frame rates
             –   Better audio quality
             –   Enables multimedia interactivity

    DCT and IDCT are widely used in video and audio
    compression


Xilinx at Work in High Volume Applications                      ®

                                        www.xilinx.com
DCT/IDCT Overview

   DCT - Discrete Cosine Transform
IDCT -Inverse Discrete Cosine Transform




                                          ®
DCT/IDCT Concept
       What is DCT?
        — X= DCT(video/audio input)
               – Returns the discrete cosine transform of ‘video/audio input’
               – Can be referred to as the even part of the Fourier series
               – Converts an image or audio block into it’s equivalent frequency
                 coefficients

       What is IDCT?
        — The IDCT function is the inverse of the DCT function
        — The IDCT reconstructs a sequence from its discrete cosine
          transform (DCT) coefficients



Xilinx at Work in High Volume Applications                                         ®

                                        www.xilinx.com
DCT/IDCT Concept
      The DCT transform of an image brings out a set of
      numbers called coefficients.
      A coefficient’s usefulness is determined by its variance
      over a set of images as in video’s case.
      If a coefficient has a lot of variance over a set, then it
      cannot be removed without affecting the picture quality.




Xilinx at Work in High Volume Applications                         ®

                                        www.xilinx.com
DCT/IDCT Concept

                                                                                                            DCT
                                                                                                                Frequency
                                                                                                                Coefficients
                                                                                                                Compared to
                                                                                                                Magnitude
     Original Image                                                                                             Thresholds
                                                                                                                Resulting in
                                                                                                                Compressed
                                                                                                        IDCT    Data Streams



                                                                              The image is broken into 8x8
                                                                              groups, each containing 64
                                                                              pixels. Three of these 8x8
                                                                              groups are enlarged in this
  Recovered Image
                                                                              figure, showing the values of
  (Notice Lesser Image Quality)                                               the individual pixels, a single
                                                                              byte value between 0 and 255.
         Courtesy: The Scientist and Engineer's Guide to Digital Signal Processing by Steven W. Smith
Xilinx at Work in High Volume Applications                                                                                 ®

                                        www.xilinx.com
DCT/IDCT Concept


                    Divide picture into
                    16 by 16 blocks.
                    (macroblocks)                                        Each block is 8
                                                                         pixels by 8 lines.
                                             Each macroblock is
                                             16 pixels by 16 lines.
                                             (4 blocks)




                                             DCT


                         8 X 8 Block                                  Frequency
                                                                      Coefficients




Xilinx at Work in High Volume Applications                                                    ®

                                        www.xilinx.com
DCT/IDCT Usage
                        Areas of Use:
                          — One-Dimensional DCT/IDCT
                                 – Dolby AC2 & AC3
                                 – Biomedical signals like EEG & ECG
                                 – Speech information compression

                          — Two-Dimensional DCT/IDCT
                                 – JPEG Encoders
                                 – MPEG-1 & MPEG-2
                                 – Image & Pattern Recognition




Xilinx at Work in High Volume Applications                             ®

                                        www.xilinx.com
DCT/IDCT Concept
                      One-Dimensional DCT Equation
                                                   N-1
                              Xc(k) = (1/N) Σ xn cos(k2πn/N),
                                                   n=0

                              where
                                         k = 0, 1, 2, …, N-1




Xilinx at Work in High Volume Applications                      ®

                                        www.xilinx.com
DCT/IDCT Concept
    One-Dimensional IDCT Equation
                       N-1
            xc(k) = Σ c[u] Xn cos(k2πn/N),
                       n=0

             where
                       k = 0, 1, 2, …, N-1,

                       Xn is the DCT result, and

                       c[u] = 1 for u=0, and c[u] = 2 for u=1,2,3,…N-1
Xilinx at Work in High Volume Applications                           ®

                                        www.xilinx.com
DCT/IDCT Concept
       Two-Dimensional DCT Equation
                               N-1 N-1

              F[u, v] = 1/N2   Σ Σ       f[m, n] cos[ (2m + 1)uπ/ 2N] cos[ (2n + 1)vπ/2N ]
                               m=0 n=0

              where:
                       u, v = discrete frequency variables (0, 1, 2, …, N - 1),
                       f[m, n] = N by N image pixels(0, 1, 2, …, N - 1), and
                       F[u, v] = the DCT result




Xilinx at Work in High Volume Applications                                                   ®

                                        www.xilinx.com
DCT/IDCT Concept
     Two-Dimensional IDCT Equation
                       N-1 N-1
             f[m, n] = Σ Σ c[u] c[v] F[u, v] cos[ (2m + 1)uπ/ 2N] cos[ (2n + 1)vπ/2N ]
                       m=0 n=0

             where:
                      m, n = image result pixel indices( 0, 1, 2, …, N – 1 ),
                      F[u, v] = N by N DCT result,
                      c[λ] = 1 for λ=0 and c[λ]=2 for λ=1,2,3,…N-1
                      f[m, n] = N by N IDCT result




Xilinx at Work in High Volume Applications                                               ®

                                        www.xilinx.com
DCT/IDCT Concept
    Example of a Simplistic one-Dimensional DCT
      — Data is transformed first and the newly calculated values are
        threshold limited to a magnitude of 0.375
      — Assuming a data sequence to be {1, 2, 0, 5}
    Applying the one-Dimensional DCT formula,the resultant DCT
    sequence is {2, 0.25, -6, 0.25}
    The values that above the threshold (|values| > 0.375) are 2 and –6
    This results in a 50% reduction in data size with minimal loss in
    quality



Xilinx at Work in High Volume Applications                              ®

                                        www.xilinx.com
DCT/IDCT
Applications




               ®
DCT/IDCT Applications
                        List of Some End Applications
                         —     DVD/Video CD Players
                         —     Cable TV
                         —     DBS Systems
                         —     HDTV
                         —     Graphics/Image Processing Cards
                         —     Ultrasound/MRI Systems
                         —     Digital VCRs
                         —     Set-Top Boxes
                         —     Digital Camera


Xilinx at Work in High Volume Applications                       ®

                                        www.xilinx.com
DCT/IDCT in JPEG
                                        Encoding
                                                                                Compressed
                                                  Zig-Zag                       Data
    Pixel Data                 Coefficient        Run-Length         Huffman
                   DCT
                                                  Encoding           Encoding
                               Quantization




                                        Decoding                                 Reconstructed

   Compressed    Huffman       Zig-Zag                                           Pixel Data
                               Run-Length          Coefficient
   Data          Decoding                                               IDCT
                               Expansion           Denormalization




                         JPEG Codec Block Diagram

Xilinx at Work in High Volume Applications                                                       ®

                                        www.xilinx.com
DCT/IDCT in Bio-Medical




      1-D DCT is commonly used on a sequence of digital
   information like voice or heartbeat information in an ECG
Xilinx at Work in High Volume Applications                     ®

                                        www.xilinx.com
DCT/IDCT in DVD/VCD
               Reconstructed (Decoded) Frame


                                                              Inverse
                                      IDCT
                                                              Quantizer



    Video to                                                                          Coded Video
    be Coded                                                              Bitstream   Bitstream
                                       DCT                    Quantizer   Coder
                      + -


                       Motion                  Motion
                       Estimator               Compensator




                                               Anchor Frame
                                               Storage
      Courtesy: C-Cube Corporation


          MPEG-2 Block Diagram in a Typical DVD System
Xilinx at Work in High Volume Applications                                                          ®

                                        www.xilinx.com
DCT/IDCT in DVD/VCD


  Master        Variable Bit Rate or
  Video Tape    MPEG-2 Audio Encoder
                                             Quality
                                             Control
                                                         Multiplexing
                                                                          Emulation
                                             Human       and Formatting
                                             Assist                                   Master
                                             Recoding                                 Disc
 Master         Dolby AC3 or
 Audio Tape     MPEG-2 Audio Encoder




     Courtesy: C-Cube Corporation

                                    DVD/VCD Mastering

Xilinx at Work in High Volume Applications                                                 ®

                                        www.xilinx.com
DCT/IDCT in DVD/VCD
                          Digital Audio/Video Decoder



                                               MPEG-2 Video Decoder

                                                                                NTSC/
                                                                                PAL            To TV
               DVD                            Subpicture        OSD             Encoder
               DSP            DEMUX           Processing        Graphics


                                                                                          To Audio System
                                               Dolby AC3 or
                                               MPEG-2 Audio Decoder




                                                  Front Panel

                 Microcontroller                 10:00:23                  ||


      Courtesy: C-Cube Corporation
                                          DVD Player
Xilinx at Work in High Volume Applications                                                                  ®

                                        www.xilinx.com
DCT/IDCT in DVD/VCD




                                     DVD Players
Xilinx at Work in High Volume Applications               ®

                                        www.xilinx.com
DCT/IDCT
                       in Digital Cameras

 2-D DCT/IDCT is applied generally on data sets that have a
 naturally two-dimensional characteristic, like a digital image




                                   Digital Cameras
Xilinx at Work in High Volume Applications                    ®

                                        www.xilinx.com
Spartan-II DCT/IDCT
                        Solution
                      DCT/IDCT Cores
                       — Available Separately or Combined




                  AllianceCORE Xentec DCT/IDCT Core
Xilinx at Work in High Volume Applications                  ®

                                        www.xilinx.com
Spartan-II DCT/IDCT
                    Solution Features

                                Features     Spartan-II
                                 Device      XC2S100-6
                                  CLBs         1026
                               Clock IOBs         1
                                  IOBs           28
                           Performance (MHz)    33.3


                  AllianceCORE Xentec DCT/IDCT Core

Xilinx at Work in High Volume Applications                ®

                                        www.xilinx.com
Spartan-II DCT/IDCT
                  Solution Performance
       Low cost Spartan-II FPGA with soft IP from Xentec has
       High Performance
        — 180 times faster 32-bit mainstream processor operating at
          266MHz




Xilinx at Work in High Volume Applications                            ®

                                        www.xilinx.com
Spartan-II DCT/IDCT
                   Solution - Features
    The Xilinx solution is efficient and cost-effective compared
    to DCT/IDCT software solution being run by a high
    performance 32-bit processor
    The Xilinx Xentec core solution is capable of operating
    either as DCT or IDCT by the use of a single mode pin




Xilinx at Work in High Volume Applications                     ®

                                        www.xilinx.com
Summary
         DCT/IDCT Solutions are Widely Used in Multimedia,
         Video, Audio, and Imaging Applications
         The Spartan-II Family has Significant Strengths in its
         DCT/IDCT Solution:
          —     Features
          —     Performance
          —     Scalability and Flexibility
          —     Cost effectiveness




Xilinx at Work in High Volume Applications                        ®

                                        www.xilinx.com

More Related Content

PDF
Hq3114621465
PDF
DWT-DCT-SVD Based Semi Blind Image Watermarking Using Middle Frequency Band
PDF
H0545156
PPTX
Watermarking
PDF
Lifting Scheme Cores for Wavelet Transform
PDF
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
PDF
Hybrid Approach for Robust Digital Video Watermarking
PDF
Hq3114621465
DWT-DCT-SVD Based Semi Blind Image Watermarking Using Middle Frequency Band
H0545156
Watermarking
Lifting Scheme Cores for Wavelet Transform
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
Hybrid Approach for Robust Digital Video Watermarking

What's hot (19)

PDF
Semantic Reasoning in Context-Aware Assistive Environments to Support Ageing ...
PDF
Image Denoising Techniques Preserving Edges
PDF
Image Resolution Enhancement Using Undecimated Double Density Wavelet Transform
PDF
BLIND WATERMARKING SCHEME BASED ON RDWT-DCT FOR COLOR IMAGES
PDF
Dukane 8421 DLP projector
PDF
PDF
Impulse noise removal in digital images
PDF
Land Cover Feature Extraction using Hybrid Swarm Intelligence Techniques - A ...
PDF
A Comparative Study of Image Compression Algorithms
PDF
Comparative Analysis of Dwt, Reduced Wavelet Transform, Complex Wavelet Trans...
PDF
Distributedsystems 100912185813-phpapp01
PDF
Gh2411361141
PPTX
DCT based Image Watermarking
PDF
ieee title
PDF
www.ijerd.com
PDF
Image Compression Using Wavelet Packet Tree
PDF
SECURE WATERMARKING TECHNIQUE FOR MEDICAL IMAGES WITH VISUAL EVALUATION
PDF
Fred Touwslager - Polymer Vision
PPT
Ei2004 presentation
Semantic Reasoning in Context-Aware Assistive Environments to Support Ageing ...
Image Denoising Techniques Preserving Edges
Image Resolution Enhancement Using Undecimated Double Density Wavelet Transform
BLIND WATERMARKING SCHEME BASED ON RDWT-DCT FOR COLOR IMAGES
Dukane 8421 DLP projector
Impulse noise removal in digital images
Land Cover Feature Extraction using Hybrid Swarm Intelligence Techniques - A ...
A Comparative Study of Image Compression Algorithms
Comparative Analysis of Dwt, Reduced Wavelet Transform, Complex Wavelet Trans...
Distributedsystems 100912185813-phpapp01
Gh2411361141
DCT based Image Watermarking
ieee title
www.ijerd.com
Image Compression Using Wavelet Packet Tree
SECURE WATERMARKING TECHNIQUE FOR MEDICAL IMAGES WITH VISUAL EVALUATION
Fred Touwslager - Polymer Vision
Ei2004 presentation
Ad

Viewers also liked (20)

PDF
DVB_Arch
PDF
DIC_video_coding_standards_07
PDF
PDF
whitepaper_mpeg-if_understanding_mpeg4
PDF
Advformat_0609
DOCX
A project on advanced C language
DOC
Advanced c c++
PDF
ADVANCED DVB-C,DVB-S STB DEMOD
PDF
Teknologi Pita Lebar 4G LTE
DOCX
30 top my sql interview questions and answers
PPTX
IoT 개발자를 위한 Embedded C에서 Test Coverage를 추출해보자
PDF
C Programming - Refresher - Part IV
PDF
Embedded SW Interview Questions
PPT
Embedded _c_
PDF
C Programming - Refresher - Part II
PDF
Linux programming - Getting self started
PDF
Linux Internals - Part III
PDF
Linux Internals - Interview essentials 4.0
PDF
Embedded C - Lecture 4
DVB_Arch
DIC_video_coding_standards_07
whitepaper_mpeg-if_understanding_mpeg4
Advformat_0609
A project on advanced C language
Advanced c c++
ADVANCED DVB-C,DVB-S STB DEMOD
Teknologi Pita Lebar 4G LTE
30 top my sql interview questions and answers
IoT 개발자를 위한 Embedded C에서 Test Coverage를 추출해보자
C Programming - Refresher - Part IV
Embedded SW Interview Questions
Embedded _c_
C Programming - Refresher - Part II
Linux programming - Getting self started
Linux Internals - Part III
Linux Internals - Interview essentials 4.0
Embedded C - Lecture 4
Ad

Similar to Discrete cosine transform (20)

PDF
2.[9 17]comparative analysis between dct & dwt techniques of image compression
PDF
2.[9 17]comparative analysis between dct & dwt techniques of image compression
PDF
Evaluation of graphic effects embedded image compression
PDF
Introduction to video compression
PDF
Efficient Implementation of Low Power 2-D DCT Architecture
PDF
Color image analyses using four deferent transformations
PDF
Color image analyses using four deferent transformations
PDF
Video Compression Basics
PDF
Hv2514131415
PDF
Hv2514131415
PDF
Kassem2009
PPT
jpg image processing nagham salim_as.ppt
PDF
Multimedia Security - JPEG Artifact details
PDF
Parallelization Techniques for the 2D Fourier Matched Filtering and Interpola...
PDF
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
PDF
Compression using JPEG
PDF
Performance boosting of discrete cosine transform using parallel programming ...
PPT
Resolution enhancement of low-quality videos using a high-resolution frame
PPT
M4L12.ppt
PPT
Image compression techniques and its applications
2.[9 17]comparative analysis between dct & dwt techniques of image compression
2.[9 17]comparative analysis between dct & dwt techniques of image compression
Evaluation of graphic effects embedded image compression
Introduction to video compression
Efficient Implementation of Low Power 2-D DCT Architecture
Color image analyses using four deferent transformations
Color image analyses using four deferent transformations
Video Compression Basics
Hv2514131415
Hv2514131415
Kassem2009
jpg image processing nagham salim_as.ppt
Multimedia Security - JPEG Artifact details
Parallelization Techniques for the 2D Fourier Matched Filtering and Interpola...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
Compression using JPEG
Performance boosting of discrete cosine transform using parallel programming ...
Resolution enhancement of low-quality videos using a high-resolution frame
M4L12.ppt
Image compression techniques and its applications

More from aniruddh Tyagi (20)

PDF
BUC BLOCK UP CONVERTER
PDF
digital_set_top_box2
PDF
EBU_DVB_S2 READY TO LIFT OFF
PDF
ADVANCED DVB-C,DVB-S STB DEMOD
PDF
haffman coding DCT transform
PDF
Classification
PDF
tyagi 's doc
PDF
quantization_PCM
PDF
ECMG & EMMG protocol
PDF
7015567A
PDF
Basic of BISS
PDF
euler theorm
PDF
fundamentals_satellite_communication_part_1
PDF
quantization
PDF
art_sklar7_reed-solomon
PDF
DVBSimulcrypt2
PDF
en_302769v010101v
PDF
Euler formula
BUC BLOCK UP CONVERTER
digital_set_top_box2
EBU_DVB_S2 READY TO LIFT OFF
ADVANCED DVB-C,DVB-S STB DEMOD
haffman coding DCT transform
Classification
tyagi 's doc
quantization_PCM
ECMG & EMMG protocol
7015567A
Basic of BISS
euler theorm
fundamentals_satellite_communication_part_1
quantization
art_sklar7_reed-solomon
DVBSimulcrypt2
en_302769v010101v
Euler formula

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Approach and Philosophy of On baking technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
project resource management chapter-09.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Hybrid model detection and classification of lung cancer
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
A Presentation on Artificial Intelligence
PPTX
A Presentation on Touch Screen Technology
PPTX
1. Introduction to Computer Programming.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Approach and Philosophy of On baking technology
MIND Revenue Release Quarter 2 2025 Press Release
cloud_computing_Infrastucture_as_cloud_p
project resource management chapter-09.pdf
Chapter 5: Probability Theory and Statistics
OMC Textile Division Presentation 2021.pptx
Hybrid model detection and classification of lung cancer
Hindi spoken digit analysis for native and non-native speakers
A Presentation on Artificial Intelligence
A Presentation on Touch Screen Technology
1. Introduction to Computer Programming.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
A comparative study of natural language inference in Swahili using monolingua...
NewMind AI Weekly Chronicles - August'25-Week II
Building Integrated photovoltaic BIPV_UPV.pdf
Web App vs Mobile App What Should You Build First.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Assigned Numbers - 2025 - Bluetooth® Document

Discrete cosine transform

  • 1. ® The DCT/IDCT Solution Customer Tutorial February 2000 File Number Here
  • 2. Agenda Introduction DCT/IDCT Concepts DCT/IDCT Applications Spartan-II DCT/IDCT IP Solutions Summary Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 3. Introduction Spartan-II FPGAs — 100,000 System Gates at under $10 — Extensive features: Block RAM, DLL, Select I/O — Vast IP Portfolio — Provide Density, Features, Performance at ASIC prices Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 4. DCT/IDCT Compression Compression allows increased throughput through transmission medium — Video and audio compression makes multimedia systems very efficient – Increases CPU bandwidth – Higher video frame rates – Better audio quality – Enables multimedia interactivity DCT and IDCT are widely used in video and audio compression Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 5. DCT/IDCT Overview DCT - Discrete Cosine Transform IDCT -Inverse Discrete Cosine Transform ®
  • 6. DCT/IDCT Concept What is DCT? — X= DCT(video/audio input) – Returns the discrete cosine transform of ‘video/audio input’ – Can be referred to as the even part of the Fourier series – Converts an image or audio block into it’s equivalent frequency coefficients What is IDCT? — The IDCT function is the inverse of the DCT function — The IDCT reconstructs a sequence from its discrete cosine transform (DCT) coefficients Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 7. DCT/IDCT Concept The DCT transform of an image brings out a set of numbers called coefficients. A coefficient’s usefulness is determined by its variance over a set of images as in video’s case. If a coefficient has a lot of variance over a set, then it cannot be removed without affecting the picture quality. Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 8. DCT/IDCT Concept DCT Frequency Coefficients Compared to Magnitude Original Image Thresholds Resulting in Compressed IDCT Data Streams The image is broken into 8x8 groups, each containing 64 pixels. Three of these 8x8 groups are enlarged in this Recovered Image figure, showing the values of (Notice Lesser Image Quality) the individual pixels, a single byte value between 0 and 255. Courtesy: The Scientist and Engineer's Guide to Digital Signal Processing by Steven W. Smith Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 9. DCT/IDCT Concept Divide picture into 16 by 16 blocks. (macroblocks) Each block is 8 pixels by 8 lines. Each macroblock is 16 pixels by 16 lines. (4 blocks) DCT 8 X 8 Block Frequency Coefficients Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 10. DCT/IDCT Usage Areas of Use: — One-Dimensional DCT/IDCT – Dolby AC2 & AC3 – Biomedical signals like EEG & ECG – Speech information compression — Two-Dimensional DCT/IDCT – JPEG Encoders – MPEG-1 & MPEG-2 – Image & Pattern Recognition Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 11. DCT/IDCT Concept One-Dimensional DCT Equation N-1 Xc(k) = (1/N) Σ xn cos(k2πn/N), n=0 where k = 0, 1, 2, …, N-1 Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 12. DCT/IDCT Concept One-Dimensional IDCT Equation N-1 xc(k) = Σ c[u] Xn cos(k2πn/N), n=0 where k = 0, 1, 2, …, N-1, Xn is the DCT result, and c[u] = 1 for u=0, and c[u] = 2 for u=1,2,3,…N-1 Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 13. DCT/IDCT Concept Two-Dimensional DCT Equation N-1 N-1 F[u, v] = 1/N2 Σ Σ f[m, n] cos[ (2m + 1)uπ/ 2N] cos[ (2n + 1)vπ/2N ] m=0 n=0 where: u, v = discrete frequency variables (0, 1, 2, …, N - 1), f[m, n] = N by N image pixels(0, 1, 2, …, N - 1), and F[u, v] = the DCT result Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 14. DCT/IDCT Concept Two-Dimensional IDCT Equation N-1 N-1 f[m, n] = Σ Σ c[u] c[v] F[u, v] cos[ (2m + 1)uπ/ 2N] cos[ (2n + 1)vπ/2N ] m=0 n=0 where: m, n = image result pixel indices( 0, 1, 2, …, N – 1 ), F[u, v] = N by N DCT result, c[λ] = 1 for λ=0 and c[λ]=2 for λ=1,2,3,…N-1 f[m, n] = N by N IDCT result Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 15. DCT/IDCT Concept Example of a Simplistic one-Dimensional DCT — Data is transformed first and the newly calculated values are threshold limited to a magnitude of 0.375 — Assuming a data sequence to be {1, 2, 0, 5} Applying the one-Dimensional DCT formula,the resultant DCT sequence is {2, 0.25, -6, 0.25} The values that above the threshold (|values| > 0.375) are 2 and –6 This results in a 50% reduction in data size with minimal loss in quality Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 17. DCT/IDCT Applications List of Some End Applications — DVD/Video CD Players — Cable TV — DBS Systems — HDTV — Graphics/Image Processing Cards — Ultrasound/MRI Systems — Digital VCRs — Set-Top Boxes — Digital Camera Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 18. DCT/IDCT in JPEG Encoding Compressed Zig-Zag Data Pixel Data Coefficient Run-Length Huffman DCT Encoding Encoding Quantization Decoding Reconstructed Compressed Huffman Zig-Zag Pixel Data Run-Length Coefficient Data Decoding IDCT Expansion Denormalization JPEG Codec Block Diagram Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 19. DCT/IDCT in Bio-Medical 1-D DCT is commonly used on a sequence of digital information like voice or heartbeat information in an ECG Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 20. DCT/IDCT in DVD/VCD Reconstructed (Decoded) Frame Inverse IDCT Quantizer Video to Coded Video be Coded Bitstream Bitstream DCT Quantizer Coder + - Motion Motion Estimator Compensator Anchor Frame Storage Courtesy: C-Cube Corporation MPEG-2 Block Diagram in a Typical DVD System Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 21. DCT/IDCT in DVD/VCD Master Variable Bit Rate or Video Tape MPEG-2 Audio Encoder Quality Control Multiplexing Emulation Human and Formatting Assist Master Recoding Disc Master Dolby AC3 or Audio Tape MPEG-2 Audio Encoder Courtesy: C-Cube Corporation DVD/VCD Mastering Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 22. DCT/IDCT in DVD/VCD Digital Audio/Video Decoder MPEG-2 Video Decoder NTSC/ PAL To TV DVD Subpicture OSD Encoder DSP DEMUX Processing Graphics To Audio System Dolby AC3 or MPEG-2 Audio Decoder Front Panel Microcontroller 10:00:23 || Courtesy: C-Cube Corporation DVD Player Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 23. DCT/IDCT in DVD/VCD DVD Players Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 24. DCT/IDCT in Digital Cameras 2-D DCT/IDCT is applied generally on data sets that have a naturally two-dimensional characteristic, like a digital image Digital Cameras Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 25. Spartan-II DCT/IDCT Solution DCT/IDCT Cores — Available Separately or Combined AllianceCORE Xentec DCT/IDCT Core Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 26. Spartan-II DCT/IDCT Solution Features Features Spartan-II Device XC2S100-6 CLBs 1026 Clock IOBs 1 IOBs 28 Performance (MHz) 33.3 AllianceCORE Xentec DCT/IDCT Core Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 27. Spartan-II DCT/IDCT Solution Performance Low cost Spartan-II FPGA with soft IP from Xentec has High Performance — 180 times faster 32-bit mainstream processor operating at 266MHz Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 28. Spartan-II DCT/IDCT Solution - Features The Xilinx solution is efficient and cost-effective compared to DCT/IDCT software solution being run by a high performance 32-bit processor The Xilinx Xentec core solution is capable of operating either as DCT or IDCT by the use of a single mode pin Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 29. Summary DCT/IDCT Solutions are Widely Used in Multimedia, Video, Audio, and Imaging Applications The Spartan-II Family has Significant Strengths in its DCT/IDCT Solution: — Features — Performance — Scalability and Flexibility — Cost effectiveness Xilinx at Work in High Volume Applications ® www.xilinx.com